<!DOCTYPE html>
<html>
<head>
</head>
<body>
	<canvas id="video1"></canvas>
	<canvas id="video2"></canvas>
	<script type="text/javascript" src="jsmpeg.min.js"></script>
	<script type="text/javascript">
		var inputPath = encodeURIComponent("rtmp://58.200.131.2:1935/livetv/hunantv");


		var url1 = 'ws://127.0.0.1:8081/live?source=rtmp://58.200.131.2:1935/livetv/hunantv&rs=400x300';
		var canvas1 = document.getElementById('video1');
		var player1 = new JSMpeg.Player(url1, {
			canvas: canvas1,
			decodeFirstFrame: false
		});

		var url2 = 'ws://127.0.0.1:8081/live?source=rtmp://58.200.131.2:1935/livetv/cctv6&rs=400x200';
		var canvas2 = document.getElementById('video2');
		var player2 = new JSMpeg.Player(url2, {
			canvas: canvas2,
			decodeFirstFrame: false
		});
	</script>
</body>
</html>